<div class="modal-header">
    <h3 class="modal-title" translate="user.mimachongzhi"></h3>
</div>
<div class="modal-body wrapper-sm">
	<div class="panel">
		<div class="panel-body label-sm">
			<ng-form name="resetPwdForm" class="form-horizontal form-validation">
				<div class="form-group m-b-xs">
					<label class="control-label">
						<span translate="user.zhanghao"></span>
					</label>
					<input class="form-control" name="account" id="resetAccount"
				 		ng-model="vm.user.account"  disabled="disabled"/>
				</div>
				<div class="form-group m-b-xs">
					<label class="control-label">
						<span class="text-danger">*</span>
						<span translate="user.mima"></span>
					</label>
					<input type="password" class="form-control" name="password" id="newPwd"
				 		ng-model="vm.user.password" 
				 		required 
				 		ng-minlength="app.pwdRule.minLength"
		  	 	 		ng-maxlength="app.pwdRule.maxLength"
					 	uib-tooltip="{{app.pwdRule.passwordTip}}"/>
				</div>
				<div class="form-group m-b-xs">
					<label class="control-label">
						<span class="text-danger">*</span>
						<span translate="user.querenmima"></span>
					</label>
					<input type="password" class="form-control" name="pwdName" id="newPwd1"
							ng-model="vm.user.pwdName"
							required 
							ui-validate=" '$value==vm.user.password' " 
		  	 					ui-validate-watch=" 'vm.user.password' "
							uib-tooltip="{{'user.querenmimatishi' | translate}}" />
				</div>
				<div class="form-group m-b-xs">
					<span class="text-{{vm.msgType}}" ng-bind="vm.errorMsg"></span>
				</div>
			</ng-form>
		</div>
	</div>
</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default" ng-click="vm.cancel()" translate="common.cancel"></button>
	<button type="button" class="btn btn-primary" ng-click="vm.save()" ng-disabled="resetPwdForm.$invalid" translate="common.confirm"></button>
</div>